<template>
    <div class="contact">
        <tool-bar :names="names"></tool-bar>
        
        <div class="content">
            <div class="top">
                <img :src="banner" alt="" class="banner">
                <p class="title">客服微信</p>
                <div class="qr-out">
                    <img :src="about.sdesc" alt="">
                </div>
                <p class="intro">{{about.sqr}}</p>
            </div>
            <div class="bottom">
                <p class="title">微信公众号</p>
                <div class="qr-out">
                    <img :src="about.gdesc" alt="">
                </div>
                <p class="intro">{{about.gqr}}</p>
            </div>
        </div>
    </div>
</template>

<script>
    import ToolBar from "./ToolBar";
    import banner from "@/assets/img/img_service.png"
    export default {
        name: "Contact",
        components: {ToolBar},
        data(){
            return {
                names:"联系客服",
                banner:banner,
                about:{}
            }
        },
        mounted() {
            this.$api.my.getAbout().then(res=> {
                // 执行某些操作
                this.about = res.data.data
            })
        }
    }
</script>

<style scoped>
    .content{
        position: absolute;
        top: 3rem;
        left: 0;
        right: 0;
    }
    .top{
        background: #fff;
        padding: 1rem;
    }
    .banner{
        width: 100%;
        margin-bottom: 3rem;
    }
    .title{
        font-size:0.94rem;
        font-family:PingFang SC;
        font-weight:bold;
        color:rgba(51,51,51,1);
        text-align: center;
    }
    .intro{
        font-size:0.75rem;
        font-family:PingFang SC;
        font-weight:500;
        color:rgba(51,51,51,1);
        text-align: center;
    }
    .qr-out{
        width:10.38rem;
        height:10.38rem;
        background: url("../../assets/img/img_code_border.png")no-repeat;
        background-size: contain;
        margin: 1.5rem auto;
        padding: 0.5rem;
    }
    .qr-out img{
        width: 100%;
    }
    .bottom{
        margin-top: 1rem;
        background: #fff;
        padding: 1rem;
    }
</style>